// 针对首页的封装
//导入工具类
import request from '../utils/request'
/**
 * 登录
 */
export function login(phone,password,nickname){
    let data={
        phone:phone,
        // nickname:nickname,
        password:password,
    }
    let url = '/login/phonePassLogin';
    // let url = '/login/namePassLogin';
    return request(url,"POST",data);
}
/**
 * 拿去外卖推荐内容
 */
export function foodMsg(limit,page){
    let url='/food/getTakeOutFoodMsg?limit='+limit+'&page='+page;
    return request(url);
}